from tortoise import fields
from tortoise.models import Model


class live_data(Model):
    uid = fields.CharField(max_length=100)
    room_id = fields.CharField(max_length=50, description="直播房间号")
    nickName = fields.CharField(max_length=50, )
    sec_uid = fields.CharField(max_length=200)
    keyword = fields.TextField()
    message = fields.TextField()
    ai_evaluation = fields.CharField(max_length=50)


class User(Model):
    uid = fields.UUIDField(primary_key=True)
    username = fields.CharField(max_length=50)
    password = fields.CharField(max_length=50)
    is_active_ai = fields.BooleanField(default=False)
